package com.xiaoxie.service.impl;

import com.xiaoxie.entity.learnLog;
import com.xiaoxie.mapper.UserDao;
import com.xiaoxie.mapper.learnLogDao;
import com.xiaoxie.service.ILearnLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LearnLogServiceImpl implements ILearnLogService {
    @Autowired
    private UserDao userDao;
    @Autowired
    private learnLogDao learnLogDao;
    @Override
    public List<learnLog> getAllLearnLog(String account) {
        return learnLogDao.getALl(userDao.select(account).getId());
    }
}
